package krow.dev.contest.controller;

import java.util.ArrayList;
import java.util.List;

import krow.dev.contest.model.TabItem;
import android.content.Context;

public class MenuBuilder {

	private List<TabItem> mMenuItemList;

	public MenuBuilder(Context context) {

		mMenuItemList = new ArrayList<TabItem>();
	}
	
	public void addMenu(int icon, String name) {

		TabItem menuItem = new TabItem();
		menuItem.setResourceId(icon);
		menuItem.setName(name);
		mMenuItemList.add(menuItem);
	}

	public void addMenu(int icon, String name, String category) {

		TabItem menuItem = new TabItem();
		menuItem.setResourceId(icon);
		menuItem.setName(name);
		menuItem.setCategory(category);

		mMenuItemList.add(menuItem);
	}

	public List<TabItem> build() {
		

		return mMenuItemList;
	}
}
